/*
 * @lc app=leetcode.cn id=1 lang=javascript
 *
 * [1] 两数之和
 */

// @lc code=start
/**
 * @param {number[]} nums
 * @param {number} target
 * @return {number[]}
 */
var twoSum = function (nums, target) {
    for (let index = 0; index < nums.length; index++) {
        for (let just = 0; just < nums.length; just++) {
            if (nums[index] + nums[just] == target && index !== just) {
                return [index, just]
            }
        }

    }
};
// @lc code=end

